package com.ml.mall.mapper.variant;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ml.mall.entity.variant.SysProductVariantSales;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
* <p>
    *  Mapper 接口
    * </p>
*
* @author kyyang
* Created 2021-05-19
*/
@Mapper
@Repository
public interface SysProductVariantSalesMapper extends BaseMapper<SysProductVariantSales> {
    /**
     * @Description 查询商品的促销价格
     * @Author pl
     * @Data 2021/7/20
     */
    BigDecimal querySalePrice(@Param("variantId") long variantId);

    SysProductVariantSales selectMaxVid(Long variantId);
}
